package locations.actions;

import java.util.ArrayList;
import java.util.List;

import locations.dao.DAOFactory;
import locations.dao.InstitutionTypeDAO;
import locations.model.InstitutionType;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class NewInstitutionTypeAction extends ActionSupport implements ModelDriven<InstitutionType> {
	
	private static final long serialVersionUID = -8124967730231198191L;
	
	private InstitutionType institutionType = new InstitutionType();
	private String pageTitle = "Editar Tipo de Institucion";
	//private List<InstitutionType> institutionTypes = new ArrayList();
	
	public String execute(){
		
		
		//InstitutionTypeDAO dao = DAOFactory.getInstitutionTypeDAO();
		//this.setInstitutionTypes(dao.retrieveAll());
		return SUCCESS;
	}
	
	




	public InstitutionType getInstitutionType() {
		return institutionType;
	}






	public void setInstitutionType(InstitutionType institutionType) {
		this.institutionType = institutionType;
	}






/*	public List<InstitutionType> getInstitutionTypes() {
		return institutionTypes;
	}






	public void setInstitutionTypes(List<InstitutionType> institutionTypes) {
		this.institutionTypes = institutionTypes;
	}*/






	@Override
	public InstitutionType getModel() {
		return this.institutionType;
	}

}
